package com.itheima.neibulei;

public class Demo1 {
    private  int a=400;
    static class Inner {
        private int a = 100;
        private int b = 200;
        //Demo1 d=new Demo1();
        public void method1() {
            System.out.println("方法1");
            System.out.println("a: "+a);
            //System.out.println("a: "+d.a);
            //System.out.println("外部类的变量:  "+Demo1.this.a);
            System.out.println("b: "+b);
        }
    }
    public Inner show() {
        System.out.println("外部类方法:创建内部类对象,简介访问......");
        return new Inner();
    }
}
class T1 {
    public static void main(String[] args) {
//        Demo1.Inner di=new Demo1().new Inner();
//        di.method1();
        Demo1.Inner s=new Demo1.Inner();
    }
}